package com.gxa.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author: fanyouzhao
 * @date: 11:27 2021/6/7
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
// @ApiModel(value = "StationMaster站点员对象")
public class StationMaster implements Serializable {
    @ApiModelProperty(name = "id", value = "id")
    private Integer id;
    @ApiModelProperty(name = "name", value = "姓名")
    private String name;
    @ApiModelProperty(name = "phone", value = "手机号")
    private String phone;
    @ApiModelProperty(name = "pwd", value = "密码")
    private String pwd;
    @ApiModelProperty(name = "regTime", value = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp regTime;
    @ApiModelProperty(name = "stationId", value = "所属站点id")
    private Integer stationId;

    private List<Role> roleList;
}
